﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;
using DefenseQuestion.Domain;

namespace DefenseQuestion
{
    /// <summary>
    /// 答题记录表
    /// </summary>
    [Table("Answer")]
    public class Answer : Audit
    {
        /// <summary>
        /// 答题记录Id
        /// </summary>
        [Key]
        public int AnswerId { get; set; }
        /// <summary>
        ///学生Id
        /// </summary>
        public int StudentId { get; set; }
        /// <summary>
        ///出题Id
        /// </summary>
        public int ExamId { get; set; }
        /// <summary>
        /// 题目Id
        /// </summary>
        public int QuestionId { get; set; }
        /// <summary>
        ///学号
        /// </summary>
        public string StudentCode { get; set; }
        /// <summary>        
        ///学生姓名
        /// </summary>
        public string FullName { get; set; }
        /// <summary>        
        ///回答内容
        /// </summary>
        public string AnswerConten { get; set; }
        /// <summary>        
        ///回答时间
        /// </summary>
        public DateTime AnswerTime { get; set; }
        /// <summary>
        ///点评内容
        /// </summary>
        public string Comment { get; set; }
        /// <summary>        
        ///点评时间
        /// </summary>
        public DateTime CommentTime { get; set; }
        /// <summary>        
        ///是否合格
        /// </summary>
        public bool UpToStandard { get; set; }
    }
}